package com.lmf.cloud.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 支付交易表
 * </p>
 *
 * @author LiuMingfu
 * @since 2024-07-18
 */
@Getter
@Setter
@TableName("t_pay")
@Schema(title = "TPay对象", description = "支付交易表")
public class TPay implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(title = "支付流水号")
    @TableField("pay_no")
    private String payNo;

    @Schema(title = "订单流水号")
    @TableField("order_no")
    private String orderNo;

    @Schema(title = "用户账号ID")
    @TableField("user_id")
    private Integer userId;

    @Schema(title = "交易金额")
    @TableField("amount")
    private BigDecimal amount;

    @Schema(title = "删除标志，默认0不删除，1删除")
    @TableField("deleted")
    private Byte deleted;

    @Schema(title = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
